package com.huaxin.device.dto.request;

import com.huaxin.device.dto.enums.validation.ValidCoolingMethod;
import com.huaxin.device.dto.enums.validation.ValidInsulationLevel;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class EquipmentModelCreateReqDTO {

    @Schema(description = "型号编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "SCB10-1000kVA")
    @NotBlank(message = "型号编码不能为空")
    private String modelCode;

    @Schema(description = "型号名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "SCB10系列干式变压器")
    @NotBlank(message = "型号名称不能为空")
    private String modelName;

    @Schema(description = "所属分类ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "c123e456-789a-bcde-f012-3456789abcdf")
    @NotBlank(message = "分类ID不能为空")
    private String categoryId;

    @Schema(description = "生产厂家", example = "特变电工")
    private String manufacturer;

    @Schema(description = "额定电压", example = "10kV/400V")
    private String ratedVoltage;

    @Schema(description = "额定电流（A）", example = "1443")
    private Integer ratedCurrent;

    @Schema(description = "额定容量（kVA/kW）", example = "1000.00")
    private BigDecimal powerRating;

    @Schema(description = "频率", example = "50Hz")
    private String frequency;

    @Schema(description = "冷却方式", example = "AN")
    @ValidCoolingMethod
    private String coolingMethod;

    @Schema(description = "绝缘等级", example = "F")
    @ValidInsulationLevel
    private String insulationLevel;

    @Schema(description = "型号说明")
    private String description;

    @Schema(description = "组织ID", example = "c123e456-789a-bcde-f012-3456789abcde")
    private String orgId;
}